package com.cci.kangdao.ecjv.service.impl;

import com.cci.kangdao.dao.ECJVComponentKenTMapper;
import com.cci.kangdao.ecjv.dto.ECJVComponentKenDto;
import com.cci.kangdao.ecjv.service.ECJVComponentKenService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description: 零件信息
 * @author: 商伟
 * @company: CTY
 * @since: 2022/10/24 13:56
 * @version: V1.0
 **/
@Service
public class ECJVComponentKenServiceImpl implements ECJVComponentKenService {
    private Logger log = Logger.getLogger(this.getClass().getName());

    @Resource
    private ECJVComponentKenTMapper ecjvComponentKenTMapper;

    /**
     * 获取件包信息
     * @param
     * @return
     */
    @Override
    public List<ECJVComponentKenDto> getKenList() {
        List<ECJVComponentKenDto> list = ecjvComponentKenTMapper.getKenList();
        return list;
    }

    /**
     * 根据件包id获取pdf信息
     * @param id 内容
     * @return
     */
    @Override
    public List<ECJVComponentKenDto> getpdfListById(Long id) {
        List<ECJVComponentKenDto> list = ecjvComponentKenTMapper.getpdfListById(id);
        return list;
    }
}
